package com.analyse.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.analyse.system.mapper.Weibv3TopicMapper;
import com.analyse.system.domain.Weibv3Topic;
import com.analyse.system.service.IWeibv3TopicService;

/**
 * 关键词检索Service业务层处理
 * 
 * @author analyse
 * @date 2023-05-09
 */
@Service
public class Weibv3TopicServiceImpl implements IWeibv3TopicService 
{
    @Autowired
    private Weibv3TopicMapper weibv3TopicMapper;

    /**
     * 查询关键词检索
     * 
     * @param id 关键词检索主键
     * @return 关键词检索
     */
    @Override
    public Weibv3Topic selectWeibv3TopicById(Long id)
    {
        return weibv3TopicMapper.selectWeibv3TopicById(id);
    }

    /**
     * 查询关键词检索列表
     * 
     * @param weibv3Topic 关键词检索
     * @return 关键词检索
     */
    @Override
    public List<Weibv3Topic> selectWeibv3TopicList(Weibv3Topic weibv3Topic)
    {
        return weibv3TopicMapper.selectWeibv3TopicList(weibv3Topic);
    }

    /**
     * 新增关键词检索
     * 
     * @param weibv3Topic 关键词检索
     * @return 结果
     */
    @Override
    public int insertWeibv3Topic(Weibv3Topic weibv3Topic)
    {
        return weibv3TopicMapper.insertWeibv3Topic(weibv3Topic);
    }

    /**
     * 修改关键词检索
     * 
     * @param weibv3Topic 关键词检索
     * @return 结果
     */
    @Override
    public int updateWeibv3Topic(Weibv3Topic weibv3Topic)
    {
        return weibv3TopicMapper.updateWeibv3Topic(weibv3Topic);
    }

    /**
     * 批量删除关键词检索
     * 
     * @param ids 需要删除的关键词检索主键
     * @return 结果
     */
    @Override
    public int deleteWeibv3TopicByIds(Long[] ids)
    {
        return weibv3TopicMapper.deleteWeibv3TopicByIds(ids);
    }

    /**
     * 删除关键词检索信息
     * 
     * @param id 关键词检索主键
     * @return 结果
     */
    @Override
    public int deleteWeibv3TopicById(Long id)
    {
        return weibv3TopicMapper.deleteWeibv3TopicById(id);
    }
}
